GBML manual / Constants

MOSAIC_BLOCKS

Blocks: the whole picture turns into big square blocks, the same size on every row.

Sega Genesis: not built yet

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

MOSAIC_BLOCKS: constant

<!-- GENERATED by tools/gbabel_looks.py from its LOOKS registry. Never edit this page: change the registry and re-run it. -->

Description

Names the blocks, for screen_mosaic. The picture is drawn in square blocks of one color each, as if it were made of big pixels, and the blocks are the same size from the top of the screen to the bottom.

strength is how big the blocks are: 1 makes them 2 pixels across, 2 makes them 4, and 3 makes them 8.

A real capture, four pictures of the same pine forest at dusk with a striped lighthouse standing in it - first sharp, then with MOSAIC_BLOCKS at strength 1, 2 and 3 (the forest is drawn in square blocks 2, 4 and 8 pixels across, while the lighthouse stays sharp)A real capture, four pictures of the same pine forest at dusk with a striped lighthouse standing in it - first sharp, then with MOSAIC_BLOCKS at strength 1, 2 and 3 (the forest is drawn in square blocks 2, 4 and 8 pixels across, while the lighthouse stays sharp)
A real capture, four pictures of the same pine forest at dusk with a striped lighthouse standing in it - first sharp, then with MOSAIC_BLOCKS at strength 1, 2 and 3 (the forest is drawn in square blocks 2, 4 and 8 pixels across, while the lighthouse stays sharp)

The same picture four times: straight, then strength 1, 2 and 3 from left to right, each one standing still where the pattern had got to. Real pictures from a Game Boy Advance ROM.

speed is how many rows the pattern travels down the screen every frame. 0 holds it still, a negative number sends it up, 0.25 is slow and 1 is quick. The pattern belongs to the rows of the screen, not to the picture. This look is the same on every row, so there is nothing to move and speed does nothing for it.

Example

pic = background_create(0, 0, ts_doc_dungeon);
background_blocky(pic, true);
screen_mosaic(MOSAIC_BLOCKS, 2, 0);

A picture made of big pixels. Call it once, for example when the room starts - it keeps going by itself until you call screen_mosaic(MOSAIC_NONE, 0, 0) or a room is loaded.

See also: screen_mosaicMOSAIC_NONEMOSAIC_DISSOLVE